Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devcontainer #1446

Merged
merged 4 commits into from
Nov 4, 2024
Merged

Add devcontainer #1446

merged 4 commits into from
Nov 4, 2024

Conversation

chloerei
Copy link
Member

@chloerei chloerei commented Nov 3, 2024

添加了 devcontainer 配置,用 vscode 或者其他支持 devcontainer 的编辑器/IDE 打开,在弹出提示中选择在容器中打开,进入命令行后用 bin/dev 即可启动服务。

不过目前有个问题,app 镜像需要设置 platform: linux/amd64,这在 mac 或者 windows 环境下会有性能损失。

这是因为 https://github.com/huacnlee/rucaptcha 这个 gem 缺少预编译平台:

- aarch64-linux-musl

另外 nokogiri 在 alpine 需要添加依赖 apk add gcompat

看能不能给 rucaptcha 加上 aarch64-linux-musl,然后我再更新 PR。

@huacnlee
Copy link
Member

huacnlee commented Nov 4, 2024

好 我今天加一下

@huacnlee
Copy link
Member

huacnlee commented Nov 4, 2024

@chloerei
Copy link
Member Author

chloerei commented Nov 4, 2024

更新了,在我 M2 笔记本上测试通过。

另外修了两个不稳定失败的测试,以便 CI 通过。

@huacnlee huacnlee changed the title 添加 devcontainer Add devcontainer Nov 4, 2024
@huacnlee huacnlee merged commit df4706c into ruby-china:main Nov 4, 2024
3 checks passed
@chloerei chloerei deleted the devcontainer branch November 4, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants